package com.mmd.admin.model.pojo.request;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Size;

@Data
@ApiModel("登录参数")
public class LoginParam {
    @NotBlank(message = "账号不可为空")
    @Size(min = 6,max = 12,message = "账号或密码错误")
    @ApiModelProperty("账号")
    private String username;
    @NotBlank(message = "密码/验证码不可为空")
    @Size(max = 16,message = "账号或密码错误")
    @ApiModelProperty("密码")
    private String password;
}
